# -*- coding: utf-8 -*-
# __author__ : Ricky
# __createTime__ : 2022/1/23 18:30
# __fileName__ : py base.py
# __devIDE__ : PyCharm
import requests
from conf.Contants import CALLBACK_URL

class OpBase:
    prefix = "send_msg"
    def dispatchMsg(self, path, data):
        url = f"{CALLBACK_URL}/{self.prefix}/{path}"
        res = requests.post(url, json=data).json()
        return res
